package com.dolphin.core.exception;

/**
 * @author shida
 */
public class BaseResponse {

    public final static BaseResponse SUCC = build("000000", "成功");


    public final static BaseResponse FAIL = build("900101", "非常抱歉，网络繁忙，请稍后再试！");


    private String code;
    private String msg;

    protected BaseResponse(){}

    private BaseResponse(String code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public static BaseResponse build(String code, String msg){
        return new BaseResponse(code, msg);
    }
}
